<?php
session_start();
// Magento login information 
$mage_url = 'http://insproj.dyndns-home.com/magento/api/?wsdl'; 
$mage_user = 'soap_user'; 
$mage_api_key = '111111'; 
// Initialize the SOAP client 
$soap = new SoapClient( $mage_url ); 
// Login to Magento 
$session_id = $soap->login( $mage_user, $mage_api_key );
?>